level
Returns the current log level specifying which message levels will be logged.
Sets the log level specifying which message levels will be logged. Message levels lower than this value will be discarded. The OFF value can be used to turn off logging.
Parameters
level
the new value for the log level